package hlhj.fhp.checkpoint.presenter

import android.content.Context
import com.example.mymvp.mvp.BasePresenter
import hlhj.fhp.checkpoint.iview.PayView
import hlhj.fhp.checkpoint.javaBean.MyBaseBean
import hlhj.fhp.checkpoint.module.PayModule

/**
 * Created by Never Fear   on 2018\11\26 0026.
Never More....
 */
class PayPresenter :BasePresenter<PayModule,PayView>(), PayView {
    override fun createModule() {
        module=PayModule()
        module.listener=this
    }

    fun yearPay(id:String,type:Int,c:Context){
        module?.yearPay(c, id, type)
    }
    fun violationPay(id:String,type: Int,c: Context){
        module?.violationPay(c, id, type)
    }
    override fun setPayResult(myBaseBean: MyBaseBean) {
    }

    override fun setYearPayOrderSign(string: String) {
        view?.setYearPayOrderSign(string)
    }

    override fun setViolationPayOrderSign(string: String) {
        view?.setViolationPayOrderSign(string)
    }
}